const mysql = require("mysql");
const connect = mysql.createConnection({
  host: "localhost",
  port: 3306,
  user: "root",
  password: "root",
  database: "sys",
});

connect.connect((err) => {
  if (!err) {
    console.log("成功");
  } else {
    console.log("失败");
  }
});
module.exports = connect;
